/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.datacontrol;

import org.apache.log4j.Logger;
import queenb.web.util.Util;

/**
 *
 * @author thanhct
 */
public class Param {

    private final Logger logger = Logger.getLogger(Param.class);
    private int type;
    private Object value;

    public Param(int type, Object value) {
        this.type = type;
        this.value = value;
    }

    /**
     * @return the type
     */
    public int getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type) {
        this.type = type;
    }

    /**
     * @return the value
     */
    public Object getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString() {
        String message= String.format("Param::TYPE=%d::VALUE=%s",type, Util.parseString(value));
        return message;
    }


}
